/******************************************************************************/
STRUCT(ClientServer , ConnectionServer)
//{
   Int clients_peak;               // peak amount of clients during server runtime
   I64 bytes_sent, bytes_received; // bytes sent/received by inactive clients (used for traffic stats)

   // get
 ::Client& client(Int i) {return (::Client&)clients.lockedData(i);} // access i-th client

   I64 bytesSentTotal    (); // bytes sent     by inactive and active clients
   I64 bytesReceivedTotal(); // bytes received by inactive and active clients

   // update
   void update();

   ClientServer() {clients.replaceClass< ::Client >(); clients_peak=0; bytes_sent=bytes_received=0;} // use custom 'Client' class
}extern
   Server;
/******************************************************************************/
